package iedcyt.acute.controller.listeners.maesorgPublication;

import iedcyt.acute.model.MaesorgJCRModel;
import iedcyt.acute.view.MaesorgJCRView;

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

/**
 * @author 53418015d
 *
 */
public class DboDobleClickListener implements Listener {

	private MaesorgJCRModel _model;
	private MaesorgJCRView _view;
	
	/**
	 * @param _view2
	 * @param _model2
	 */
	public DboDobleClickListener(MaesorgJCRView _view2, MaesorgJCRModel _model2) {
		this._model = _model2;
		this._view = _view2;
	}
	
	
	/* (non-Javadoc)
	 * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
	 */
	public void handleEvent(Event event) {
		Integer idJcr = _view.getSelectedDboIdJcr();
		if (idJcr != null) {
			_model.showDboInformation(idJcr);
			
			
		}
		
	}
}
